package com.castle.fortress.admin.cms.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
/**
 * cms轮播图管理表 实体类
 *
 * @author castle
 * @since 2022-02-24
 */
@Data
@ApiModel(value = "cmsBanner对象", description = "cms轮播图管理表")
public class CmsBannerDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "主键")
	@JsonProperty("id")
	private Long id;
	@ApiModelProperty(value = "pc图片")
	@JsonProperty("pcImage")
	private String pcImage;
	@ApiModelProperty(value = "app图片")
	@JsonProperty("appImage")
	private String appImage;
	@ApiModelProperty(value = "跳转链接")
	@JsonProperty("url")
	private String url;
	@ApiModelProperty(value = "标签")
	@JsonProperty("tags")
	private String tags;
	@ApiModelProperty(value = "排序")
	@JsonProperty("sort")
	private Integer sort;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "修改人")
	@JsonProperty("updateUser")
	private Long updateUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "修改时间")
	@JsonProperty("updateTime")
	private Date updateTime;

}
